<link rel="stylesheet" href="cart/css/cart.css">
<div class="cart">
    <div class="goods-list">
        <ul>
            <li class="clear" ng-repeat="g in goods">
                <span class="checkbox" ng-class="{'selected': g.checked}" ng-click="addOrReduceToCart()"></span>
                <img ng-src="{{ g.img }}" alt="">
                <div class="info">
                    <p class="title">{{ g.name }}</p>
                    <p class="price">￥{{ g.price }}</p>
                </div>
                <div class="btns">
                    <span class="reduce" ng-click="reduce()"></span>
                    <span class="count">{{ g.count }}</span>
                    <span class="add" ng-click="add()"></span>
                </div>
            </li>
        </ul>
        <section class="all-price-wrapper">
            <p class="checkbox" ng-class="{'selected': allGoods}" ng-click="addAllGoodsToCart()">全选</p>
            <p>
                共: <span class="all-price">￥{{ allPrice }}</span>
            </p>
            <div class="btn">
                选好了
            </div>
        </section>
    </div>

</div>
